package com.xingkeduo.pojo.table;

import com.xingkeduo.util.pojo.base.BaseTable;
import com.xingkeduo.util.pojo.enums.*;
import org.apache.ibatis.type.Alias;

import java.util.Date;

/**
 * 一线员工社会属性类
 * 
 * @author 高杰
 * @time 2018年12月25日 下午4:59:34
 * @description
 */
@Alias("CraftsmanSocial")
public class CraftsmanSocialTO extends BaseTable<CraftsmanSocialTO> {

	private String wechatName;
	private String name;
	private String idCard;
	private String phone;
	private SexEnum sex;
	private Date birth;
	private String signaTure;
	private String ethnic;
	private DegreeEnum degree;
	private YesNoEnum isMarried;
	private String bankCard;
	private BankEnums bank;
	private String subBranch;
	private String houseHold;
	private HouseHoldTypeEnum houseHoldType;

	public String getSignaTure() {
		return signaTure;
	}

	public CraftsmanSocialTO setSignaTure(String signaTure) {
		this.signaTure = signaTure;
		return this;
	}

	public String getName() {
		return name;
	}

	public CraftsmanSocialTO setName(String name) {
		this.name = name;
		return this;
	}

	public String getWechatName() {
		return wechatName;
	}

	public CraftsmanSocialTO setWechatName(String wechatName) {
		this.wechatName = wechatName;
		return this;
	}

	public BankEnums getBank() {
		return bank;
	}

	public String getSubBranch() {
		return subBranch;
	}

	public CraftsmanSocialTO setSubBranch(String subBranch) {
		this.subBranch = subBranch;
		return this;
	}

	public String getIdCard() {
		return idCard;
	}

	public CraftsmanSocialTO setIdCard(String idCard) {
		this.idCard = idCard;
		return this;
	}

	public String getPhone() {
		return phone;
	}

	public CraftsmanSocialTO setPhone(String phone) {
		this.phone = phone;
		return this;
	}

	public SexEnum getSex() {
		return sex;
	}

	public CraftsmanSocialTO setSex(SexEnum sex) {
		this.sex = sex;
		return this;
	}

	public Date getBirth() {
		return birth;
	}

	public CraftsmanSocialTO setBirth(Date birth) {
		this.birth = birth;
		return this;
	}

	public String getEthnic() {
		return ethnic;
	}

	public CraftsmanSocialTO setEthnic(String ethnic) {
		this.ethnic = ethnic;
		return this;
	}

	public DegreeEnum getDegree() {
		return degree;
	}

	public CraftsmanSocialTO setDegree(DegreeEnum degree) {
		this.degree = degree;
		return this;
	}

	public YesNoEnum getIsMarried() {
		return isMarried;
	}

	public CraftsmanSocialTO setIsMarried(YesNoEnum isMarried) {
		this.isMarried = isMarried;
		return this;
	}

	public String getBankCard() {
		return bankCard;
	}

	public CraftsmanSocialTO setBankCard(String bankCard) {
		this.bankCard = bankCard;
		return this;
	}

	public BankEnums getBack() {
		return bank;
	}

	public CraftsmanSocialTO setBank(BankEnums bank) {
		this.bank = bank;
		return this;
	}

	public String getHouseHold() {
		return houseHold;
	}

	public CraftsmanSocialTO setHouseHold(String houseHold) {
		this.houseHold = houseHold;
		return this;
	}

	public HouseHoldTypeEnum getHouseHoldType() {
		return houseHoldType;
	}

	public CraftsmanSocialTO setHouseHoldType(HouseHoldTypeEnum houseHoldType) {
		this.houseHoldType = houseHoldType;
		return this;
	}

	public CraftsmanSocialTO copy(JobseekerSocialTO jobseekerSocial) {
		return this.setName(jobseekerSocial.getName()).setIdCard(jobseekerSocial.getIdCard())
				.setPhone(jobseekerSocial.getPhone()).setSex(jobseekerSocial.getSex())
				.setBirth(jobseekerSocial.getBirth()).setEthnic(jobseekerSocial.getEthnic())
				.setDegree(jobseekerSocial.getDegree()).setIsMarried(jobseekerSocial.getIsMarried())
				.setHouseHold(jobseekerSocial.getHouseHold()).setHouseHoldType(jobseekerSocial.getHouseHoldType());
	}

	@Override
	public String toString() {
		return "CraftsmanSocialTO{" +
				"wechatName='" + wechatName + '\'' +
				", name='" + name + '\'' +
				", idCard='" + idCard + '\'' +
				", phone='" + phone + '\'' +
				", sex=" + sex +
				", birth=" + birth +
				", ethnic='" + ethnic + '\'' +
				", degree=" + degree +
				", isMarried=" + isMarried +
				", bankCard='" + bankCard + '\'' +
				", bank=" + bank +
				", subBranch='" + subBranch + '\'' +
				", houseHold='" + houseHold + '\'' +
				", houseHoldType=" + houseHoldType +
				'}';
	}
}
